<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex align-stretch benben-position-layout flex orderPromotion_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex align-center justify-between flex-sub orderPromotion_fd0_0'      >
            <view   class='flex align-center orderPromotion_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  orderPromotion_fd0_0_c0_c0'  >&#xE794;</text>
</view>
    <view   class='flex align-center'      >
        <text class='orderPromotion_fd0_0_c1_c0'  >{{$t('订单明细')}}</text>
</view>
    <view   class='flex align-center justify-end orderPromotion_fd0_0_c0'   @tap.stop="popupShow1692180741207=true"   >
        <image class='orderPromotion_fd0_0_c2_c0'  mode="aspectFit"  :src='STATIC_URL+"309.png"'  v-if= " appSystemIdentification!='Wechat'"></image>
</view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---推广订单-推广flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout"    >
        <view>
        <benben-flex-tabs class-name='orderPromotion_benbenTabsfd1_0'  v-model="tabs" ref="benben_tabsfd1_0" select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false' :open-sticky='true' :top='88' :is-show-content='false' :scrollspy='false'  :tabs-info.sync="tabsInfofd1_0" @change="queryMessageFunc()" >
            
                    <scroll-view
          @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft"
          id="benben_tabsfd1_0"
          class="benben-tabs"
          style="width:750rpx"
          :scroll-x="true"
          :scroll-left.sync="tabsInfofd1_0.moveX"
          scroll-with-animation="all .3s ease"
        >
          <view class="benben-tabs-content" id="benben_tabsfd1_0-content">
            <view id="benben_tabsfd1_0-title" class="benben-tabs-title flex flex align-center justify-around">
                        <view 
                :class="{ 'checkTitlefd1_0': tabs == 'all', 'flex flex-wrap align-center': true }"
                @tap="tabs = 'all'"
                :id="`benben_tabsfd1_0-title-item-${'all'}`"
                
                
              >
                
<text   >{{$t('全部')}}</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == 'payed', 'flex flex-wrap align-center': true }"
                @tap="tabs = 'payed'"
                :id="`benben_tabsfd1_0-title-item-${'payed'}`"
                
                
              >
                
<text   >{{$t('已付款')}}</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == 'completed', 'flex flex-wrap align-center': true }"
                @tap="tabs = 'completed'"
                :id="`benben_tabsfd1_0-title-item-${'completed'}`"
                
                
              >
                
<text   >{{$t('已完成')}}</text>

              </view>
            </view>
            <view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}" id="benben_tabsfd1_0-line" class="benben-tabs-line flex benben-flex-tabs-line orderPromotion_linefd1_0"></view>
          </view>
        </scroll-view>
            
        </benben-flex-tabs>
        
</view>
    <view   class='flex flex-direction flex-wrap align-stretch orderPromotion_fd1_1'      >
            <template v-for = '(item,key0) in dataMessage'>
    <view   class='flex flex-direction flex-wrap align-stretch orderPromotion_fd1_1_c0'       :key='key0'>
            <view   class='flex flex-wrap align-center'      >
        <image class='orderPromotion_fd1_1_c0_c0_c0'  mode="aspectFill"  :src='item.avatar'></image>
<text class='flex-sub orderPromotion_fd1_1_c0_c0_c1'  >{{item.nickname}}</text>
<text class='orderPromotion_fd1_1_c0_c0_c2'  >{{item.status_text}}</text>
</view>
    <view   class='flex flex-wrap align-center flex-sub orderPromotion_fd1_1_c0_c1'      >
            <view   class='flex flex-wrap align-stretch orderPromotion_fd1_1_c0_c1_c0'      >
        <image class='orderPromotion_fd1_1_c0_c1_c0_c0'  mode="aspectFill"  :src='item.goods_thumb'></image>
    <view   class='flex flex-direction align-stretch flex-sub orderPromotion_fd1_1_c0_c1_c0_c1'      >
        <text class='orderPromotion_fd1_1_c0_c1_c0_c1_c0'  >{{item.goods_name}}</text>
    <view   class='flex flex-wrap align-center orderPromotion_fd1_1_c0_c1_c0_c1_c1'      >
        <text class='orderPromotion_fd1_1_c0_c1_c0_c1_c1_c0'  >{{item.sku_name}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-between'      >
            <view   class='flex flex-wrap align-center'      >
        <text class='orderPromotion_fd1_1_c0_c1_c0_c1_c2_c0_c0'  >{{$t('￥')}}</text>
<text class=' orderPromotion_fd1_1_c0_c1_c0_c1_c2_c0_c1'   >
    <text class=' orderPromotion_price1_fd1_1_c0_c1_c0_c1_c2_c0_c1' >{{ item.goods_price | frontPrice }}</text>
    <text class=' orderPromotion_price2_fd1_1_c0_c1_c0_c1_c2_c0_c1' >{{ item.goods_price | laterPrice }}</text>
</text>
</view>
    <view   class='flex flex-wrap align-center orderPromotion_fd1_1_c0_c1_c0_c1_c2_c1'      >
        <text class='orderPromotion_fd1_1_c0_c1_c0_c1_c2_c1_c0'  >x</text>
<text class='orderPromotion_fd1_1_c0_c1_c0_c1_c2_c1_c0'  >{{item.goods_num}}</text>
</view>
</view>
</view>
</view>
</view>
    <view   class='flex flex-wrap align-center orderPromotion_fd1_1_c0_c2'      >
        <text   >{{$t('收益等级：')}}</text>
<text   >{{item.detail_level}}</text>
</view>
    <view   class='flex flex-wrap align-center orderPromotion_fd1_1_c0_c2'      >
        <text   >{{$t('订单编号：')}}</text>
<text   >{{item.order_sn}}</text>
</view>
    <view   class='flex flex-wrap align-center orderPromotion_fd1_1_c0_c4'      >
        <text   >{{$t('下单时间：')}}</text>
<text   >{{item.create_time}}</text>
</view>
    <view   class='flex flex-wrap align-center justify-between orderPromotion_fd1_1_c0_c5'      >
            <view   class='flex flex-wrap align-center'      >
        <text class='orderPromotion_fd1_1_c0_c5_c0_c0'  >{{$t('订单实付金额:')}}</text>
<text class='orderPromotion_fd1_1_c0_c5_c0_c0'  >{{$t('￥')}}</text>
<text class='orderPromotion_fd1_1_c0_c5_c0_c0'  >{{item.order_total}}</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='orderPromotion_fd1_1_c0_c5_c1_c0'  >{{$t('预计收益')}}</text>
<text class='orderPromotion_fd1_1_c0_c5_c1_c1'  >{{$t('￥')}}</text>
<text class='orderPromotion_fd1_1_c0_c5_c1_c2'  >{{item.detail_bonus}}</text>
</view>
</view>
</view>
    </template>
    <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
</view>
</view>
        
<!---推广订单-推广flex布局结束-->
<benben-popup v-model="popupShow1692180741207" :mask="true" :mask-close-able="true"  mode='center' >
    <!---flex布局flex布局开始-->
 <view class="flex benben-flex-layout flex-wrap align-center"    >
        <benben-calendar-diy  mode='range' year-arrow-color='#666666' month-arrow-color='#666666' start-text=' ' end-text=' ' active-bg-color='rgba(0, 142, 77, 1)' range-bg-color='rgba(240, 248, 244, 1)' :change-title='true' :change-year='true' :change-month='true' class='orderPromotion_fd2_0'  @change="queryMessageFunc()"  :start-time.sync="time_start" :end-time.sync="time_end"></benben-calendar-diy>
</view>
        
<!---flex布局flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"popupShow1692180741207":false,"tabsInfofd1_0":{ lineleft: '', lineWidth: '', moveX: 0, scrollX: 0, PageScrollX: 0 },"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"tabs":"all","dataMessage":[],"time_end":"","time_start":"","time":""};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
                  /**
     * @returns 
      * Android       安卓
      * IOS       苹果
      * Web       H5 或 pc
      * Wechat       微信小程序
      * Alipay       支付宝小程序
      * Baidu       百度小程序
      * ByteBounce       抖音小程序
      * 360       360小程序
      * FastApp       快应用
    */
    appSystemIdentification() {
      return this.$store.state.appSystemIdentification
    }
		},
		watch:{},
		onLoad(options){
            let {time}=options
if (time !== undefined) this.time = time
this.dateTransFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.dateTransFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //计算每月的时间
                 dateTransFunc(){
                        if( this.time=='month'){
             let date = new Date()
        let year = date.getFullYear();
        let month = date.getMonth() + 1;
        let day = date.getDate();

        month = (month > 9) ? month : ("0" + month);
        day = (day < 10) ? ("0" + day) : day;
        this.time_end = year + "-" + month + "-" + day;
        this.time_start = year + "-" + month + "-01";
    }
                    this.queryMessageFunc()
                },
                //分销中心-获取推广订单
                 queryMessageFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post62fb8d520a146;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {start_time:this.time_start,end_time:this.time_end,status:this.tabs}
                this.listData = [];
                this.dataMessage = this.listData;
                this.pagingListToggle();
                
    this.popupShow1692180741207 = false;
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#F8F8F8;background-size: 100% auto;
        }
    .orderPromotion_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .orderPromotion_fd0_0_c2_c0{
        width:36rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .orderPromotion_fd0_0_c1_c0{
        font-size:36rpx;font-weight:500;color:#333;
    }
    .orderPromotion_fd0_0_c0_c0{
        font-size:32rpx;font-weight:500;color:#333;
    }
    .orderPromotion_fd0_0_c0{
        width:180rpx;
    }
    .orderPromotion_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .orderPromotion_fd1_1_c0_c5_c1_c2{
        color:var(--benbenFontColor7);font-size:36rpx;font-weight:700;line-height:42rpx;
    }
    .orderPromotion_fd1_1_c0_c5_c1_c1{
        color:var(--benbenFontColor7);font-size:24rpx;font-weight:700;line-height:42rpx;
    }
    .orderPromotion_fd1_1_c0_c5_c1_c0{
        color:#999999;font-size:24rpx;font-weight:400;line-height:42rpx;margin:0rpx 16rpx 0rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0_c5_c0_c0{
        color:var(--benbenFontColor5);font-size:24rpx;font-weight:400;line-height:42rpx;
    }
    .orderPromotion_fd1_1_c0_c5{
        padding:24rpx 0rpx 32rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0_c4{
        border-bottom:1px solid rgba(238, 238, 238, 1);color:#999999;font-size:24rpx;line-height:42rpx;font-weight:400;padding:0rpx 0rpx 24rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0_c2{
        color:#999999;font-size:24rpx;line-height:42rpx;font-weight:400;margin:0rpx 0rpx 24rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c2_c1_c0{
        color:#999999;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c2_c1{
        font-size:24rpx;font-weight:400;color:#999999;line-height:33rpx;
    }
    .orderPromotion_price2_fd1_1_c0_c1_c0_c1_c2_c0_c1{
        font-size:22rpx;
    }
    .orderPromotion_price1_fd1_1_c0_c1_c0_c1_c2_c0_c1{
        font-size:32rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c2_c0_c1{
        color:var(--benbenFontColor7);font-weight:600;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c2_c0_c0{
        font-size:20rpx;font-weight:700;color:var(--benbenFontColor7);
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c1_c0{
        font-size:24rpx;font-weight:400;color:#999999;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;line-height:33rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c1{
        margin:16rpx 0rpx 30rpx 0rpx;color:#999999;font-size:24rpx;line-height:33rpx;font-weight:400;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1_c0{
        font-size:28rpx;font-weight:500;color:#333333;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;line-height:42rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c1{
        margin:0rpx 0rpx 0rpx 24rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0_c0{
        width:200rpx;height:200rpx;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
    .orderPromotion_fd1_1_c0_c1_c0{
        margin:24rpx 0rpx 24rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0_c1{
        background:#fff;background-size:100% auto !important;
    }
    .orderPromotion_fd1_1_c0_c0_c2{
        color:var(--benbenFontColor4);font-size:28rpx;font-weight:500;line-height:40rpx;
    }
    .orderPromotion_fd1_1_c0_c0_c1{
        color:#333333;font-size:28rpx;font-weight:400;line-height:40rpx;margin:0rpx 0rpx 0rpx 18rpx;
    }
    .orderPromotion_fd1_1_c0_c0_c0{
        width:48rpx;height:48rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .orderPromotion_fd1_1_c0{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;padding:32rpx 19rpx 0rpx 24rpx;margin:0rpx 0rpx 24rpx 0rpx;
    }
    .orderPromotion_fd1_1{
        padding:24rpx 24rpx 0rpx 24rpx;
    }
    .orderPromotion_linefd1_0{
        background:var(--benbenbgColor7);width:40rpx;height:8rpx;top:80rpx;background-size:100% auto !important;border-radius:16rpx;
    }
    .checkTitlefd1_0{
        font-weight:700 !important;font-size:32 !important;color:rgba(0, 142, 77, 1) !important;background-color:rgba(255, 255, 255, 1) !important;
    }
    ::v-deep .orderPromotion_benbenTabsfd1_0{
        background:#fff;width:750rpx;height:90rpx;white-space:nowrap;text-align:center;font-size:32rpx;font-weight:400;color:#666666;
    }
    .orderPromotion_fd2_0{
        background:#ffffff;width:640rpx;border-radius:24rpx;margin:012rpx 012rpx 012rpx 012rpx;
    }
</style>